package com.qst.crop.dao;


import com.qst.crop.entity.Address;
import com.qst.crop.entity.Cart;
import com.qst.crop.entity.MyCart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

@Component
public interface CartDao {
    int add(Cart cart);

    //List<Cart> selectByExample(@Param("name")String name);

    int update(Integer shoppingId, Integer count, LocalDateTime laTime);

    List<Cart> show();

    int delete(Integer id);

    List<MyCart> show1(String username);

    int isExit(Integer id,String username);
}
